/**
 * Dashboard.Translate
 * Simple object that provides the translation support to all the other dashboard objects
 *
 * @author Seth
 * @version 0.2
 */
Dashboard.Translate = function() {
	var cache = {},

	// translation handle
	_load = function() {
		var t = $('[class="dashboard_translate"]');
		cache = $.parseJSON(t.html());

	// constructor
	}, __construct = function(i) {
		if(jQuery.isEmptyObject(cache))
			_load();

		return cache[i] == undefined ? '['+i+']' : cache[i];
	};

	// public
	return {
		init: __construct
	};
}();